import {Base} from '../../utils/base';
class Category extends Base{


  getCategotyList(callBack){
    var params = {
      url:'category/list',
      sCallBack:function(res){ callBack && callBack(res.data) }
    }
    this.request(params);
  }

  getChildCategoryArray(pid,callBack){
    var params = {
      url:'category/child/list?pid='+pid,
      sCallBack:function(res){ callBack && callBack(res.data) }
    }
    this.request(params);
  }
}
export {Category}